-- GENERATED SPELL FOR [Luthion the Vile] --


function spell0_27860(pUnit, Event) --@Blood Presence,Self--
pUnit:FullCastSpellOnTarget(50689,pUnit)
pUnit:RegisterEvent('Sorts_27860', 697, 1)
end

function spell1_27860(pUnit, Event) --@Plague Strike,n/a--
pUnit:FullCastSpellOnTarget(50688,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_27860', 12000, 1)
end

function Sorts_27860(pUnit, Event)
local choix_sorts_27860 = math.random(0, 1)
if choix_sorts_27860 == 0 then
pUnit:RegisterEvent('spell0_27860', 1, 1)
end
if choix_sorts_27860 == 1 then
pUnit:RegisterEvent('spell1_27860', 1, 1)
end
end

function mob27860_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_27860', math.random(1500, 3000), 1)
end

function mob27860_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob27860_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob27860_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(27860, 1, 'mob27860_Action')
RegisterUnitEvent(27860, 2, 'mob27860_Leave')
RegisterUnitEvent(27860, 3, 'mob27860_Kill')
RegisterUnitEvent(27860, 4, 'mob27860_Die')
